<?php

namespace Database\Seeders;

use App\Models\Navigation;
use Illuminate\Database\Seeder;

class NavigationSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $navigations = [
            ['name' => '首页', 'route' => '/', 'sort' => 1],
            ['name' => '留言', 'route' => '/message', 'sort' => 2],
            ['name' => '关于', 'route' => '/about', 'sort' => 3],
            ['name' => '归档', 'route' => '/archive', 'sort' => 4],
            ['name' => '动态', 'route' => '/action', 'sort' => 5],
        ];
        foreach ($navigations as $navigation) {
            Navigation::factory()->create($navigation);
        }
    }
}
